<?php
/**
 * Created by PhpStorm.
 * User: Jerry
 * Date: 2017/1/13
 * Time: 18:21
 */

namespace SDXApi\Model;


/**
 * Class TouchCategoryModel
 * @package SDXApi\Model
 */
class TouchCategoryModel
{
	/**
	 * @var string
	 */
	protected $table = 'touch_category';

	/**
	 * Created by Jerry
	 * @param $categoryId
	 * @return mixed
	 */
	public function findImageByCategoryId($categoryId)
	{
		$where = array(
			'cat_id'	=>	$categoryId,
		);

		return $this->where($where)->find();
	}
}